<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>v-on</title>
<script src="../js/vue.js"></script>
</head>
<body>
 <div id="app" class="container">  
            <hr />
            <button type="button" v-on:click='show' class="btn btn-primary btn-default">显示数据</button>  
            <hr/>
            <button type="button" @click="show" class="btn btn-success btn-default">显示数据</button>  
  </div>  
  
<script>
new Vue({
  el: '#app',
  data: {
      message:'www.flrj.net',
	  ok:true
  },
  methods:{
	show:function(){
		alert(this.message)
	}
  
  }
})
</script>
</body>
</html>
